package com.blog.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author DavidSharch
 * @email 2267762534@qq.com
 * @date 2020/12/19 13:13
 * 爬取到的原始数据
 * https://ruanyf.github.io/sina-news/rss.json
 * Serializable实现序列化，才能json转为bean
 */
@Data
public class News implements Serializable {
    private String version;
    private String title;
    private String home_page_url;
    private String feed_url;
    private String description;
    private List<SimpleNews> items; //新闻主体，一个数组
}
/**
 * {
 *   "version": "https://jsonfeed.org/version/1",
 *   "title": "新浪新闻",
 *   "home_page_url": "https://ruanyf.github.io/sina-news/",
 *   "feed_url": "https://ruanyf.github.io/sina-news/rss.json",
 *   "description": "新浪全球实时财经新闻直播",
 *   "items": [
 *     {
 *       "id": 1936325,
 *       "content_html": "",
 *       "url": "https://finance.sina.cn/7x24/2020-12-19/detail-iiznctke7344455.d.html",
 *       "title": "市场消息，受新冠病毒影响，华盛顿特区的紧急状态将延长至明年3月31日。",
 *       "date_modified": "2020-12-19T04:31:47.000Z"
 *     },
 *       ]
 * }
 */

